package org.flashbrighton.as3bots.logic
{
	import org.flashbrighton.as3bots.events.BotEvent;
	
	public class BotLogic implements IBotLogic
	{
		
		private var _engineVal:Number;
		private var _rotationVal:Number;
		
		/**
		 * Constructor.
		 */
		public function BotLogic()
		{
			
		}
		
		
		/**
		 * The 'thinking' code for the bot.
		 * Code here is run every frame.
		 */
		public function run():void
		{
			
		}
		
		
		/**
		 * Used by the game to let the bot know
		 * when it has hit something.
		 * Reactions to these events should be
		 * placed in this method.
		 */
		public function notify(event:BotEvent):void
		{
			if (event.type == BotEvent.BAD)
			{
				trace(event);
			}
		}
		
		
		/**
		 * The engine value requested by the game.
		 */
		public function get enginePercent():Number
		{
			return _engineVal;
		}
		
		
		/**
		 * The rotation value requested by the game.
		 */
		public function get rotatorPercent():Number
		{
			return _rotationVal;
		}
		
	}
}